package io.github.talelin.latticy.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import io.github.talelin.latticy.dto.SpuDetailDTO;
import io.github.talelin.latticy.model.Banner;
import io.github.talelin.latticy.model.Spu;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * spu业务层
 *
 * @author YiHua
 * @since 2022-01-04
 */
public interface SpuService extends IService<Spu> {

    /**
     * 查询多个spu,支持分页
     *
     * @param pageNum  false 当前页
     * @param pageSize false 每页条数
     */
    IPage<Spu> paging(Integer pageNum, Integer pageSize);

    /**
     * 获取spu的详细信息
     *
     * @param id spuId
     */
    SpuDetailDTO getSpuDetail(Integer id);
}
